import http from '@/service/request/index.js'

// 添加购物车
export function addCartApi(data){
	return http.post('/api/shop/shoppingCart',data)
}
// 获取购物车
export function getCartApi(params){
	return http.get('/api/shop/shoppingCart',{params})
}
// 更新购物车
export function updateCartApi(id,data){
	return http.put(`/api/shop/shoppingCart/${id}`,data)
}
// 删除购物车
export function delCartApi(id){
	return http.delete(`/api/shop/shoppingCart/${id}`)
}